| printSamples {GCDkit} | R Documentation |
Displays specified combination of numeric variable(s) and/or labels for selected range of samples.
printSamples(elems=NULL,which=NULL,select.samples=FALSE,print=TRUE)
elems |
list of variables to be printed |
which |
list of samples, useful only for select.samples=FALSE |
select.samples |
logical: if TRUE, samples can be chosen using the appropriate dialogue |
print |
logical: should be the result indeed printed or just returned for further evaluation? |
This function prints the desired numerical columns, textual labels, or their combinations, for selected samples.
The samples can be selected based on combination of three searching mechanisms
(by sample name/label, range or a Boolean condition) - see
selectSamples for details.
The variables to be printed are chosen by the function
'selectColumnsLabels'. In the specification of the variable can
be used also arithmetic expressions, see calcCore for the correct
syntax.
results |
data matrix with the desired data for the specified samples |
Vojtěch Janoušek, vojtech.janousek@geology.cz
## Not run:
# Querying names of numeric data columns
Search pattern = SiO2, MgO, CaO
Search pattern = major
SiO2, TiO2, Al2O3, Fe2O3, FeO, MnO, MgO, CaO, Na2O, K2O, P2O5
Search pattern = LILE
Rb, Sr, Ba, K, Cs, Li
Search pattern = HFSE
Nb, Zr, Hf, Ti, Ta, La, Ce, Y, Ga, Sc, Th, U
Search pattern = REE
La, Ce, Pr, Nd, Sm, Eu, Gd, Tb, Dy, Ho, Er, Tm, Yb, Lu
Search pattern = Locality,SiO2,LILE,HFSE
Locality, SiO2, Rb, Sr, Ba, K, Cs, Li, Nb, Zr, Hf, Ti,
Ta, La, Ce, Y, Ga, Sc, Th, U
Search pattern = 1:5, 7
Numeric data columns number 1, 2, ...5, 7
# User-defined list
my.elems<-c("Rb","Sr","Ba")
Search pattern = my.elems
Rb, Sr, Ba
## End(Not run)